import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
const router = new VueRouter({
    mode:'hash',
    routes:[
        {
            path:'/shouye',
            name:'shouye',
            component:()=>import('../views/ShouYe.vue'),
            children:[
                {
                    // path:'/shouye/itemdetail',
                    path:'itemdetail',
                    name:'itemdetail',
                    component:()=>import('../views/shouye/ItemDetail.vue')
                }
            ]
        },
        {
            path:'/fenlei',
            name:'fenlei',
            component:()=>import('../views/FenLei.vue')
        }
    ]
})
export default router;